import hasRole from './hasRole.ts'
import hasPermi from './hasPermi.ts'
import copyText from './copyText.ts'
import type { App } from 'vue';
export default function addDirectiveForApp(app:App){
  app.directive('hasRole', hasRole)
  app.directive('hasPermi', hasPermi)
  app.directive('copyText', copyText)
  //用于流程图拖动节点后，节点标题获取焦点,经检验，无需此指令
  app.directive('mountedFocus', {
    mounted(el) {
      el.focus()
    }
  })
}

